using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;
using NHibernate.Expression;

namespace WOODIFramework.Model
{
    [ActiveRecord("DropDownList")]
    public class DropDownList : PageItem
    {
        #region Fields

        private Guid _dropDownListId;
        private string _tooltip;

        #endregion

        #region Properties

        [JoinedKey("dropDownListId")]
        public Guid DropDownListId
        {
            get { return _dropDownListId; }
            set { _dropDownListId = value; }
        }

        [Property]
        public string Tooltip
        {
            get { return _tooltip; }
            set { _tooltip = value; }
        }

        #endregion

        #region Constructors

        private DropDownList()
        {
            this.Id = Guid.NewGuid();
            this.DropDownListId = this.Id;
        }


        private DropDownList(string Name)
        {
            this.Id = Guid.NewGuid();
            this.DropDownListId = this.Id;
            this.Name = Name;
        }

        #endregion

        #region Public Methods

        #region Public Static Methods

        public static DropDownList CreateDropDownList()
        {
            return new DropDownList();
        }

        public static DropDownList CreateDropDownList(string Name)
        {
            return new DropDownList(Name);
        }

        #endregion

        #endregion


    }
}
